package org.darkforest.common.services.impl;

import org.darkforest.common.services.MemberPrivilegeService;
import org.darkforest.dao.mapper.MemberPrivilegeMapper;
import org.darkforest.model.MemberPrivilege;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by pc on 2017/4/10.
 */
@Service
public class MemberPrivilegeServiceImpl implements MemberPrivilegeService {
    @Autowired
    private MemberPrivilegeMapper memberPrivilegeMapper;
    @Override
    public MemberPrivilege selectByCondition(MemberPrivilege record) {
        record.setResultList(memberPrivilegeMapper.selectByCondition(record));
        return record;
    }
}
